package com.hqj.client.service;

import com.hqj.client.entity.BlogsLikes;

import java.util.List;

/**
 * @author 王建林
 * @version 1.0
 * @date 2020/10/15
 */
public interface BlogsLikesService {
    /**
     * 分页查询
     *
     * @param page
     * @param size
     * @return java.util.List<com.hqj.client.entity.BlogsLikes>
     * @date 2020/10/15 15:41
     */
    List<BlogsLikes> findPage(int page, int size);

    /**
     * 增加
     *
     * @param
     * @return int
     * @date 2020/10/15 16:20
     */

    int add(BlogsLikes blogsLikes);

    /**
     * 修改
     *
     * @param blogsLikes
     * @return int
     * @date 2020/10/15 16:30
     */
    int updates(BlogsLikes blogsLikes);

    /**
     * 删除
     * @param id 博客id
     * @return int
     * @date 2020/10/15 16:40
     */
    int delete(Long id);


    /**判断是否点赞
     * @date 2020/10/29 15:46
     * @param blogsId	博客id
     * @param username	用户账户
     * @return com.hqj.client.entity.BlogsLikes
     */
        BlogsLikes judgelikes( Long blogsId,String username);

}
